<!--
 * @Description: 背景
 * @Author: zzj
 * @Date: 2021-08-17 10:02:50
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-17 10:09:28
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景</title>
    <style>
        body{
            margin: 0;
        }
        .header{
            background-color: gold;
            background-image: url(./images/header.jpg);
            background-repeat: no-repeat;
            background-size: 200px  100px;
            height: 200px;
        }
    </style>
</head>
<body>
    <div class="header">
        hello world
    </div>
</body>
</html>